package com.smedi.ismedi.progress.core.application.query;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smedi.ismedi.progress.core.application.command.ConstructionLogDetailQuery;
import com.smedi.ismedi.progress.core.application.command.ConstructionLogListQuery;
import com.smedi.ismedi.progress.core.application.command.ConstructionLogQuery;
import com.smedi.ismedi.progress.core.application.command.ConstructionLogSaveAndDraft;
import com.smedi.ismedi.progress.core.domain.aggregatemodel.ConstructionLog;
import com.smedi.ismedi.progress.core.domain.aggregatemodel.ConstructionLogDetail;
import com.smedi.ismedi.progress.core.domain.aggregatemodel.ConstructionLogWeather;
import com.smedi.ismedi.progress.core.port.adapter.persistence.model.ConstructionLogEntity;

import java.util.List;

/**
 * 施工日志服务
 *
 * @author pengyan
 * @date 2021/09/19
 */
public interface ConstructionLogService {

    List<ConstructionLogWeather> constructionContext(ConstructionLogQuery constructionLogQuery);

    ConstructionLogSaveAndDraft saveReportAndDetial(ConstructionLogSaveAndDraft constructionLogSaveAndDraft);

    ConstructionLogSaveAndDraft getConstructionLogOne(ConstructionLogSaveAndDraft constructionLog);

    void updateConstructionLog(ConstructionLogSaveAndDraft constructionLogQuery);

    ConstructionLogEntity getConstructionLog(ConstructionLogSaveAndDraft constructionLogSaveAndDraft);

    Integer findConstructionLog(String firstDay, Long projectId);
}
